STEP 17: Let's see what the user answered and add fudge if the user wants some.

  • Click on LOGIC and go to . Drag if into the bottom of the elif statement.
  • The if statement should be indented twice! Change choice to fudge.
  • Go to and drag Function Call with Parameter inside the if statement. Indent 3 times!
  • Rename the function to add_fudge() and change the parameter to scoops.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)